package com.qf.service.impl;

import com.qf.bean.Dept;
import com.qf.bean.Role;
import com.qf.dao.DeptMapper;
import com.qf.dao.RoleMapper;
import com.qf.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * IntelliJ IDEA -> person
 * 2019/11/20 20:31
 *
 * @author zmyao
 * 别看，我是渣渣。
 */
@Service
public class DeptServiceImpl  implements DeptService {
    @Autowired
    private DeptMapper  deptMapper;

    @Override
    public List<Dept> findalldepts() {
        return deptMapper.findalldepts();
    }

    @Override
    public Dept selectByPrimaryKey(Integer deptid) {
        return deptMapper.selectByPrimaryKey(deptid);
    }


}
